#pragma once
#include "command.h"
#include <vector>
#include <fstream>

struct fHeader
{
	char magic[8];
	word version;
	byte pcount;
	word entry;
	byte type;
	word size;
};
struct pHeader
{
	word pentry;
	word psize;
	word fbegin;
	byte type;
};

fHeader getHeader(const char *filename);
void getpHeader(const char *filename, fHeader fMessage);
void loadImage(const char *filename);